<?php #p_manage.php
	session_start();
	include('../inc/chec.php');
	include('../mysql_connect.php');
?>
<?php #header.html
	include('header.html');
?>
<?php #left.html
	include('left.html');
?>
	<div style=" width:800px;min-width:700px;height:550px;float:left; background-color:#DEEBEF; margin:50px;">
         <h2 style="float:left;width:100px; height:25px; text-align:center;margin-left:100px;color:white; background-color:#09F;">发布人</h2><h2  style="float:left;width:100px; height:25px; text-align:center;margin-left:100px;color:white; background-color:#09F;">发布时间</h2><h2  style="float:left;width:100px; height:25px; text-align:center;margin-left:100px;color:white; background-color:#09F;">消息</h2>
<br style="clear:left;">
  
<?php 
	$sqlstr = "select id,content,time from tb_message";
	$result = mysql_query($sqlstr,$dbc);
	while($rows = mysql_fetch_row($result)){
		for($i=1;$i<count($rows);$i++){
			echo "<span style='height:30px;text-indent:30px;margin-left:130px;max_width:60px;overflow:hidden;'>".$rows[$i]."</span>";
		}
		echo "<span style='margin-left:100px;'> <a href='m_message.php?id=".$rows[0]."'>修改</a>/<a href='d_message_chk.php?id=".$rows[0]."' onclick='return del_mess();'>删除</a>";
		echo "</span></br> ";
	}
?>
<a href='add_manage.php' target="mainFrame" style="display:block; float:right; text-align:center;padding:12px;width:110px;height:50px;color:white; background-color:#09F;">发布新消息</a>
</div>
<div style="clear:both;"></div>
<?php #footer.html
	include('footer.html');
?>